<title>提现</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<script type="text/javascript" src="#(assets)/js/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="#(path)/assets/js/jquery.tmpl.min.js"></script> 
<script type="text/javascript" src="#(assets)/js/layer/layer.js"></script>
#@checkToken()
<style> 
	body{font-family:"Microsoft YaHei",Arial,Helvetica,sans-serif,"宋体";}
	*{margin:0;padding:0;}
	li{list-style-type:none;}
	select,input{-webkit-appearance:none;border:0px;
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0);   
	}
</style>
<body bgcolor="#fff" style="margin:0px;">
	<div align="center" style="width:100%;">
	
		<div style="border-bottom:1px solid #f0f0f0">
			<div style="width:90%;height:60px;padding:20px 0 0 0;"> 
				<div style="float:left;color:#626262"><img id="_src" style="width:35px;" src=""></div>
				<div class="bank_name" style="float:left;margin-left:15px;margin-top:5px;"></div>
				<div class="bank_account" style="float:right;margin-top:5px;"></div> 
			</div>
			</div>
		</div>
		
		<div style="width:100%;height:10px;background:#f4f5f9"></div>
		<div align="left" style="line-height:40px;padding-left:5%;marign-top:10px;">
			<div style="font-weight:400;height:40px;width:90%;background:#FFF;line-height:40px;">
				<div style="height:40px;">
					<div style="float:left;color:#373737">账户余额</div>
					<div class="availableAmount" style="float:right;color:#f9314b"></div>
				</div>
			</div>

			<div style="font-weight:400;height:40px;width:90%;background:#FFF;border-top:1px solid #f4f5f9">
				<div style="height:40px;">
					<div style="float:left;color:#373737;padding-right:10px;border-right:1px solid #f4f5f9;height:20px;margin-top:10px;line-height:20px;">提现现金</div>
					<div style="float:left;width:120px;color:#f9314b;"><input id="inputmoney" placeholder="请输入提现金额" type="telephone" style="font-size:14px;width:100%;height:40px;padding-left:10px;"></div>
					<div align="center" id="allclick" style="float:right;width:60px;height:25px;line-height:25px;margin-top:7.5px;color:#f9314b;border:1px solid #fa3048;border-radius:5px;font-size:13px;"> 一键提现 </div>
				</div>
			</div>
		</div>
		<div align="center" style="width:100%;height:10px;background:#f4f5f9"></div>
		
		<div align="center" style="margin-left:5%;line-height:20px;font-size:10px;color:#818181;width:90%;border-bottom:1px solid #f5f6fb;padding:15px 0 10px 0">
			<div>提现不收任何手续费，资金将在1-3个工作日内到账</div>
			<div>（双休日和法定节假日除外）</div>
			<div>如果遇到周末和国家法定节假日，会顺延到下一个工作日到账</div>
		</div>
		
		<div style="margin-top:10px;height:100px;">
			<div align="center"  style="float:left;width:49%;border-right:1px solid #f4f5f9">
				<div style="font-size:12px;line-height:30px;color:#868686">提现时间</div>
				<div style="font-size:14px;line-height:20px;color:#373737">当日15:00前提现</div>
				<div style="font-size:14px;line-height:20px;color:#373737">当日15:00后提现</div>
			</div>
			<div align="center" style="float:right;width:49%;">
				<div style="font-size:12px;line-height:30px;color:#868686">到账时间</div>
				<div style="font-size:14px;line-height:20px;color:#373737">T+1</div>
				<div style="font-size:14px;line-height:20px;color:#373737">T+2</div>
			</div>
		</div>
		<div id="extract_sumbit" align="center" style="height:40px;width:80%;margin-left:10%;border:1px solid #fc5569;border-radius:5px;color:#fc5569;line-height:40px;">立即提现</div>
	</div>
	<!--弹窗--> 
	<div id="extract_mengban"  hidden style="background-color:rgba(0,0,0,0.4);position:absolute;top:0;width:100%;height:100%;z-index:550"><div>
	<div align="center" hidden  id="extract_tishi" style="margin-left:5%;background:#FFF;height:345px;width:90%;position:absolute;top:100px;z-index:600;border-radius:10px;font-size:14px;">
		<div align="center" style="width:100%;line-height:49px;height:49px;border-bottom:1px solid #eee;font-size:16px;">
			<a style="color:#626262"> 提现</a>
		</div>
		<div style="width:100%;line-height:40px;height:40px;">
			<div align="left" style="margin-left:10%;float:left;">银行：<a class="bank_name">工商银行</a></div>
		</div>
		<div style="width:100%;line-height:40px;height:40px;border-top:1px solid #e6e6e6">
			<div align="left" style="margin-left:10%;float:left;">卡号：<a class="bank_account">6222******5544</a></div>
		</div>
		<div style="width:100%;line-height:40px;height:40px;border-top:1px solid #e6e6e6">
			<div align="left" style="margin-left:10%;float:left;">提现账户：<a>115********</a></div>
		</div>
		<div style="width:100%;line-height:40px;height:40px;border-top:1px solid #e6e6e6">
			<div align="left" style="margin-left:10%;float:left;">账户余额：<a class="availableAmount"></a>元</div>
		</div>
		<div style="width:100%;line-height:40px;height:40px;border-top:1px solid #e6e6e6">
			<div align="left" style="margin-left:10%;float:left;">提现金额：<a id="outmoney">5000000</a>元</div>
		</div>
		<div style="width:100%;line-height:40px;height:40px;border-top:1px solid #e6e6e6">
			<div align="left" style="margin-left:10%;float:left;">预计到账时间：<a id="day">2017-05-06</a></div>
		</div>
		<div align="center" style="clear:both;width:100%;line-height:49px;height:49px;border-top:1px solid #e6e6e6">
			<div id="extract_true" align="center" style="float:left;width:49%;height:49px;border-right:1px solid #e6e6e6">确认</div>
			<div id="extract_false" align="center" style="float:right;width:49%;height:49px">取消</div>
		</div>
	</div>
	<!--支付密码-->
		
		<!--<div align="center" hidden id="deposit_zhifu" style="margin-left:5%;background:#FFF;height:160px;width:90%;position:absolute;top:150px;z-index:600;border-radius:10px;font-size:14px;">
			<div align="center" style="width:100%;line-height:49px;height:49px;border-bottom:1px solid #eee;font-size:16px;">
				<a style="color:#626262"> 输入支付密码</a>
			</div>
			<div align="center" style="width:100%;line-height:30px;height:60px;border-bottom:1px solid #eee">
				<div style="width:100%;height:60px;float:left;">
					<input id="jine" placeholder="支付密码" type="password" style="padding-left:15px;margin-top:15px;border:1px solid #eee;width:70%;height:30px;font-size:14px;color:#fa3048;">
				</div>

			</div>
			<div  align="center" style="width:90%;line-height:49px;height:49px;">
				<div  id="extract_passtrue" align="center" style="float:left;width:49%;line-height:49px;height:49px;border-right:1px solid #eee"><span >确认</span></div>
				<div  id="extract_passfalse" align="center" style="float:left;width:49%;line-height:49px;height:49px;"><span >取消</span></div>
			</div>
		</div>-->
<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script> 
<script>
var url = "#(path)/card/mainCard?token=#(session.token??)";

$.getJSON(url, function(datalist) {
	console.log(datalist);
	var datainfo = datalist.data.card;
	$(".bank_account").html(datainfo.bank_account.substring(0, 4) + " ******** " + datainfo.bank_account.substring(12,16));
	$(".bank_name").html(datainfo.bank_name);
	$("#day").html(datalist.data.day);
	day
	var _src = "#(assets)/images/mobile/bank/" + datainfo.bank_code + ".png";
	$("#_src").attr('src',_src); 
 
});
var url2 = "#(path)/user/benefit?token=#(session.token??)";
$.getJSON(url2, function(datalist1) {
	console.log(datalist1);
	var datainfo1 = datalist1.data;
	$(".availableAmount").html(datainfo1.availableAmount);
});
$("#allclick").click(function(){
	$("#inputmoney").val($(".availableAmount").html());
});
$("#extract_sumbit").click(function(){
	$("#extract_mengban").show();
	$("#extract_tishi").show();
	$("#outmoney").html($("#inputmoney").val());
});
$("#extract_true").click(function(){
	$("#extract_tishi").hide();
	$("#deposit_zhifu").show();
	var money_true = $("#outmoney").html();
	var ip_l=returnCitySN["cip"];
	var url3 = "#(path)/withdraw?token=#(session.token??)&amount="+money_true+"&ip="+ip_l;
	$.getJSON(url3, function(datalist3) {
		console.log(datalist3);
		if(datalist3.code=='success'){
			window.location.href=datalist3.data.url;
		}else{
			layer.msg(datalist3.msg,{icon:2,time:1000}); 
		}
	});
});
$("#extract_false").click(function(){
	$("#extract_tishi").hide();
	$("#extract_mengban").hide();
});
	
</script>



</body>